<?python
  
    from fasttrack.utils import fmt, textilize, getGroups
    from turbogears import identity
    
    user_person = identity.current.user
    groupids = getGroups()
    
?>

<li xmlns:py="http://purl.org/kid/ns#" class="answer" id="answer_$answer.id">
	<div class="answer_content" onmouseover="show_inline('remove_answer_link_$answer.id');" onmouseout="hide('remove_answer_link_$answer.id');">
		${XML(textilize(answer.answer))}
		<div class="answer_info">
			<span>Answered by <a href="mailto:$answer.creator.emailAddress">${answer.creator.displayName}</a>
			on ${fmt(answer.creation_date)}</span>
			<a py:if="not read_only and (user_person == answer.creator or 'admin' in groupids)" class="remove_answer_link" id="remove_answer_link_$answer.id" style="display: none;" href="#" onclick="remove_answer($answer.id); return false;">remove</a>
		</div>
	</div>
</li>